package com.baor.dao;

import com.baor.domain.CommentVo;
import com.baor.domain.GoodsVo;
import com.baor.domain.field.CommentLevelField;
import com.github.yulichang.base.mapper.MPJJoinMapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface CommentDao extends MPJJoinMapper<CommentVo> {
    int insertComment(Map<String, Object> comment);
    List<Map<String, Object>> selectComment(Map<String, Object> comment);
    int pageCount(Map<String, Object> params);
    int deleteComment(Map<String, Object> params);

    int updateCommentStatus(Map<String, Object> params);
    List<CommentLevelField> selectCommentLevel();
    int replyComment(Map<String, Object> params);;
    List<Map<String, Object>> selectGoods();
    int updateCommentOrder(Map<String, Object> params);
    int cancelCommentOrder(Map<String, Object> params);
}
